<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <base href="<?php echo baseURL()?>" />
    <link rel="stylesheet" type="text/css" href="css/reset.css" />
    <link rel="stylesheet" type="text/css" href="css/common.css" />
    <link rel="stylesheet" type="text/css" href="css/form.css" />
    <link rel="stylesheet" type="text/css" href="css/sprite.css" />
    <link rel="stylesheet" type="text/css" href="css/content.css" />
    
    <link rel="stylesheet" href="<?php echo baseURL()?>js/jqRating/jquery.ratings.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo baseURL()?>css/jquery.fancybox.css" />  
	
    <script type="text/javascript" src="<?php echo baseURL()?>js/jquery.min.js"></script>
    <script type="text/javascript" src="<?php echo baseURL()?>js/parse-1.1.8.js"></script>
    <!-- <script src="http://connect.facebook.net/en_US/all.js"></script> -->
    <script type="text/javascript" src="<?php echo baseURL()?>js/function_support.js"></script>
    <script type="text/javascript" src="<?php echo baseURL()?>js/jquery.fancybox.js"> </script>
    <!-- created by Lee Haira -->
    <script type="text/javascript" src="js/customform.js"></script>
    <!-- <script type="text/javascript" src="js/jquery.mousewheel.js"></script> -->
    <script type="text/javascript" src="js/jquery.easing.js"></script>
    <script type="text/javascript" src="js/jqRating/jquery.ratings.js"> </script>
    <script type="text/javascript" src="js/api_parse.js"> </script>
    <!-- end -->
    <script type="text/javascript">
      var baseurl = '<?php echo baseURL()?>';
      var parseAppId = "pgk8pnhbKOt9zRpbV2IQLtaXeDbZX4cXuPEXf6Ml";
      var parseKey = "DsN3IS3F1NV2yO3th64RiHeKiN1GD1c2LF3HubVY";
      var _currentUser;
      Parse.initialize(parseAppId,parseKey);
        _currentUser = Parse.User.current();  
      var status = <?php if(isset($_GET['type'])){echo $_GET['type'];} else{echo 0;}?>;
      var idpro = '<?php if(isset($_GET['id'])){echo $_GET['id'];} else{echo 0;}?>';
      var _aclRead = new Parse.ACL(_currentUser);
      _aclRead.setPublicReadAccess(true);
      //_aclRead.setAccess(_currentUser);
      
      $(document).ready(function(){
        $('.modalbox').fancybox();
      });
      /*
      Parse.FacebookUtils.init({
      
        appId      : '141838665962514', // Facebook App ID
        channelUrl : 'http://handy-moby.vaynong.net/parse/channel.html', 
        status     : true, // check login status
        cookie     : true, // enable cookies to allow Parse to access the session
        xfbml      : true  // parse XFBML
      });//Init facebook
      */
      </script>
    <?php
    if(isset($_jsExtend)){echo $_jsExtend;}
    ?>
    
	<title><?php if(isset($_title)){ echo $_title; }?></title>

  
</head>